export default {
  namespaced: true,
  state: {
    globalLoading: false
  },
  mutations: {
    SET_LOADING(state, status) {
      state.globalLoading = status;
    }
  },
  actions: {
    startLoading({ commit }) {
      commit('SET_LOADING', true);
    },
    stopLoading({ commit }) {
      commit('SET_LOADING', false);
    }
  }
}
